using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for ManageAnnouncement
/// </summary>
public class ManageAnnouncement
{
    //Jacquie
    public void enterAnnouncement(Announcement Ann) 
    { 
        
    }

    //Jacquie
    public int updateAnnouncementLibrarianView(Announcement a)
    {
        DatabaseAccess dbAccess = new DatabaseAccess();
        return dbAccess.UpdateAnnouncements_LibrarianView(a);
    }

    //Jacquie
    public void deleteAnnouncement(int AnnouncementID) 
    { 
        
    }

    public SqlDataReader getAnnouncement(int AnnouncementID)
    {
        return null;
    }
    public DataSet getAllAnnouncements(int LibraryID)
    {
        DatabaseAccess accessor = new DatabaseAccess();

        return accessor.getAllAnnouncements(LibraryID);
    }
    public SqlDataReader findAnnouncement(String keyword)
    {
        return null;
    }
}
